package com.towexin.application.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * TODO
 * 菜单表
 * @author Towexin
 * @version 1.0
 * @date 2021/4/11 20:44
 */
@Data
@TableName("t_menu")
public class Menu implements Serializable {
    private static final long serialVersionUID = 6150091314979188010L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String pId;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Integer type;            // 菜单类型 0:菜单 1:系统首页

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String menuName;        // 菜单名称

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String menuHref;        // 页面链接

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Boolean page;          // 是否是页面

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Boolean open;            // 是否展开

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Boolean status;          // 是否启用

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String target;          // 点击时打开方式  _self：选项卡   _blank：新标签

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Integer sort;        // 排序

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String icon;

    @TableField(fill = FieldFill.INSERT, insertStrategy = FieldStrategy.NOT_NULL)
    private Date createdTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
